<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<html>
    <head>
        <title>Adding a new user</title>
    </head>

    <body>
        <h1>New user</h1>

        <form:form method="POST" action="/spring-intro/form/save" modelAttribute="user">
            <table>
                <tr>
                    <td><form:label path="userName">User name:</form:label></td>
                    <td><form:input path="userName"/></td>
                </tr>

                <tr>
                    <td><form:label path="firstName">First name:</form:label></td>
                    <td><form:input path="firstName"/></td>
                </tr>

                <tr>
                    <td><form:label path="lastName">Last name:</form:label></td>
                    <td><form:input path="lastName"/></td>
                </tr>

                <tr>
                    <td colspan="2">
                        <input type="submit" value="Submit"/>
                    </td>
                </tr>
            </table>
        </form:form>
    </body>
</html>